public class OverrideTest02 {
    public static void main(String[] args) {
Cat2 cat2 = new Cat2();
cat2.move();
    }
}

class Animal2  {
    public void move()
    {
        System.out.println("动物移动");
    }
}
class Cat2 extends Animal2 {
    public void move()
    {
        System.out.println("猫移动");
    }
}